<%-- 
    Document   : ShoppingCart
    Created on : Jul 14, 2011, 6:29:49 PM
    Author     : havn
--%>

<%@include file="page/header.jsp" %>
<table width="100%" style="text-align: center;border: #135CAE thin solid">
    <tr style="background-color: #F7F7F7">
        <th>id</th>
        <th>name</th>
        <th>image</th>
        <th>price</th>
    </tr>

    <c:forEach items="${sessionScope.ShoppingCart.getCart()}" var="product">
        <tr>
            <td><c:out value="${product.id}" /></td>
            <td><c:out value="${product.name}" /></td>
            <td><img width="100" src="${product.image}" /></td>
            <td><c:out value="${product.price}" /></td>
        </tr>
    </c:forEach>
    <tr>
        <td>Total Item : ${sessionScope.ShoppingCart.getCount()}</td>
        <td colspan="3">Total Price = ${sessionScope.ShoppingCart.getTotal()}</td>
    </tr>
    <tr><td colspan="4"><a href="#?w=400" rel="payment" class="pay"><img src="images/payment.jpg" /></a></td></tr>
</table>
<div id="payment" class="payment">  
    <div align="left">
        <form action="Payment" method="post" id="paypal">
            <div id="warp_info" >
                <div id="datainfo">
                    <table width="100%">
                        <tr>
                            <td>Card Number :</td>
                            <td><input type="textbox" name="cardnumber"/></td>
                        </tr>
                        <tr>
                            <td>Password :</td>
                            <td><input type="password" name="password"/></td>
                        </tr>
                        <tr>
                            <td>Fullname :</td>
                            <td><input type="textbox" name="fullname"/></td>
                        </tr>
                        <tr>
                            <td><input type="hidden" name="money"/></td>
                            <td></td>
                        </tr>
                    </table>
                    <p><input type="submit" value=" pay "/></p>
                </div>
            </div>
        </form>
    </div>
    
</div> 
<%@include file="page/footer.jsp" %>